include ../../mk/Makefile.root.include
include ../../mk/Makefile.libs.include
HIDE=

CUR_PROJ_DIR	:= ..

PROJ_INC_PATHES +=	$(CUR_PROJ_DIR)
PROJ_INC_PATHES +=	$(GTEST_INC_PATH) 
PROJ_LIB_PATHES += 	$(GTEST_LIB_PATH)
PROJ_LIB_NAMES 	+=   gtest_main  pthread

PROJ_CXXFLAGS += 


PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/helper/*.cpp)
PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/helper/unittest/*.cpp)



all:$(TARGET_BIN) subdirs

this: $(TARGET_BIN)
		
clean.this: 
	$(DO_CLEAN)

$(TARGET_BIN):$(OBJS)
	$(DO_CPP_TARGET)

clean: subdirs.clean
	$(DO_CLEAN)

run: subdirs.run $(TARGET_BIN)
	$(DO_RUN_BIN)

subdirs:
	make -j4 -C ./object 
	make -j4 -C ./unittest
	make -j4 -C ./util
	make -j4 -C ./scope
	make -j4 -C ./watch
	make -j4 -C ./rocksdb
	make -j4 -C ./iter
	make -j4 -C ./syntax
	make -j4 -C ./sqlite
	make -j4 -C ./resource

subdirs.clean:
	make -C ./watch clean
	make -C ./scope clean
	make -C ./util clean
	make -C ./unittest clean
	make -C ./object clean
	make -C ./rocksdb clean
	make -C ./iter clean
	make -C ./syntax clean
	make -C ./sqlite clean
	make -C ./resource clean

subdirs.run:
	make -C ./util run
	make -C ./unittest run
	make -C ./object run
	make -C ./scope run
	make -C ./watch run
	make -C ./rocksdb run
	make -C ./iter run
	make -C ./syntax run
	make -C ./sqlite run
	make -C ./resource run

